home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / lib / tclX6.4c / dist / tests / asgnfield.test < prev    next >
Encoding:
Text File  |  1992-11-07  |  1.1 KB  |  31 lines

  1. #
  2. # asgnfield.test
  3. #
  4. # Tests for tcl.tlib field assignment routines.
  5. #---------------------------------------------------------------------------
  6. # Copyright 1992 Karl Lehenbauer and Mark Diekhans.
  7. #
  8. # Permission to use, copy, modify, and distribute this software and its
  9. # documentation for any purpose and without fee is hereby granted, provided
  10. # that the above copyright notice appear in all copies.  Karl Lehenbauer and
  11. # Mark Diekhans make no representations about the suitability of this
  12. # software for any purpose.  It is provided "as is" without express or
  13. # implied warranty.
  14. #------------------------------------------------------------------------------
  15. # $Id: asgnfield.test,v 2.0 1992/10/16 04:49:29 markd Rel $
  16. #------------------------------------------------------------------------------
  17. #
  18.  
  19. if {[info procs test] == ""} then {source testlib.tcl}
  20. rename SAVED_UNKNOWN unknown
  21.  
  22. Test assign_fields-1.1 {assign_fields command} {
  23.     assign_fields "a b {c d} e" alpha beta gamma delta epsilon
  24.     return [list $alpha $beta $gamma $delta $epsilon]
  25. } 2 "a b {c d} e {}"
  26.  
  27. catch {unset alpha beta gamma delta epsilon}
  28. rename unknown SAVED_UNKNOWN
  29.  
  30.  
  31.